import QtQuick
import QtQuick.Controls.Fusion
import Backend as B

Label {
    id: control

    required property string iconName
    property int iconSize: 16

    text: B.QtAwesomIconFont.charmap(control.iconName)
    font: B.QtAwesomIconFont.font(control.iconName.split(".")[0], control.iconSize)
    verticalAlignment: Text.AlignVCenter
    horizontalAlignment: Text.AlignHCenter
}
